package com.ysdz.tibetan.tibetanmini.user.beans;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "role_auth")
public class RoleAuth {
    /**
     * 主键Id
     */
    @Id
    private Long id;

    /**
     * 角色Id
     */
    @Column(name = "role_id")
    private Long roleId;

    /**
     * 权限Id
     */
    @Column(name = "auth_id")
    private Long authId;

    /**
     * 获取主键Id
     *
     * @return id - 主键Id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置主键Id
     *
     * @param id 主键Id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取角色Id
     *
     * @return role_id - 角色Id
     */
    public Long getRoleId() {
        return roleId;
    }

    /**
     * 设置角色Id
     *
     * @param roleId 角色Id
     */
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    /**
     * 获取权限Id
     *
     * @return auth_id - 权限Id
     */
    public Long getAuthId() {
        return authId;
    }

    /**
     * 设置权限Id
     *
     * @param authId 权限Id
     */
    public void setAuthId(Long authId) {
        this.authId = authId;
    }
}